n_sqaured=0
sum=0
(1..100).each do |n|
	n_sqaured=n_sqaured+(n**2)
	sum=sum+n
end
puts (sum**2)-n_sqaured